package com.bjqh.edu.Bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Administrator on 2017/10/26.
 */

public class Headlines {

    /**
     * total : 0
     * msg : success
     * status : 200
     * rows : [{"uid":1,"total":"","id":13,"content":"http://url.cn/59AbgYn","title":"教育新新闻","time":1508919034000,"page":"","admin":{"id":13,"time":"","sex":"","cardimg":"","nickname":"","cardnum":"","name":"王五","role":"","password":"","header":"","mobile":""},"typeid":"","img":"/sys/news//1508919033567.png","rows":""},{"uid":1,"total":"","id":14,"content":"http://url.cn/5t1ABEJ","title":"2132423","time":1508919110000,"page":"","admin":{"id":14,"time":"","sex":"","cardimg":"","nickname":"","cardnum":"","name":"王五","role":"","password":"","header":"","mobile":""},"typeid":"","img":"/sys/news//1508919110193.png","rows":""},{"uid":1,"total":"","id":15,"content":"http://url.cn/5Ly4w5n","title":"萨芬的发","time":1508919139000,"page":"","admin":{"id":15,"time":"","sex":"","cardimg":"","nickname":"","cardnum":"","name":"王五","role":"","password":"","header":"","mobile":""},"typeid":"","img":"/sys/news//1508919138457.png","rows":""},{"uid":1,"total":"","id":16,"content":"http://url.cn/5SOSbeJ","title":"asdfsa","time":1508919844000,"page":"","admin":{"id":16,"time":"","sex":"","cardimg":"","nickname":"","cardnum":"","name":"王五","role":"","password":"","header":"","mobile":""},"typeid":"","img":"/sys/news//1508919843530.png","rows":""},{"uid":1,"total":"","id":17,"content":"http://url.cn/53JN2Qf","title":"sdfa","time":1508919859000,"page":"","admin":{"id":17,"time":"","sex":"","cardimg":"","nickname":"","cardnum":"","name":"王五","role":"","password":"","header":"","mobile":""},"typeid":"","img":"/sys/news//1508919858936.png","rows":""}]
     * banner : [{"total":"","id":31,"time":1508926680000,"flag":6,"page":"","name":"观看公开课,感受名师风采","img":"/sys/menu/1508921358930.png","rows":""}]
     */

    private int total;
    private String msg;
    private int status;
    private List<RowsBean> rows;
    private List<BannerBean> banner;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<RowsBean> getRows() {
        return rows;
    }

    public void setRows(List<RowsBean> rows) {
        this.rows = rows;
    }

    public List<BannerBean> getBanner() {
        return banner;
    }

    public void setBanner(List<BannerBean> banner) {
        this.banner = banner;
    }

    public static class RowsBean implements Parcelable {
        /**
         * uid : 1
         * total : ""
         * id : 13
         * content : http://url.cn/59AbgYn
         * title : 教育新新闻
         * time : 1508919034000
         * page : ""
         * admin : {"id":13,"time":"","sex":"","cardimg":"","nickname":"","cardnum":"","name":"王五","role":"","password":"","header":"","mobile":""}
         * typeid : ""
         * img : /sys/news//1508919033567.png
         * rows : ""
         */

        private int uid;
        private String total;
        private int id;
        private String content;
        private String title;
        private long time;
        private String page;
        private AdminBean admin;
        private String typeid;
        private String img;
        private String rows;

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public String getPage() {
            return page;
        }

        public void setPage(String page) {
            this.page = page;
        }

        public AdminBean getAdmin() {
            return admin;
        }

        public void setAdmin(AdminBean admin) {
            this.admin = admin;
        }

        public String getTypeid() {
            return typeid;
        }

        public void setTypeid(String typeid) {
            this.typeid = typeid;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getRows() {
            return rows;
        }

        public void setRows(String rows) {
            this.rows = rows;
        }

        public static class AdminBean implements Parcelable {
            /**
             * id : 13
             * time : ""
             * sex : ""
             * cardimg : ""
             * nickname : ""
             * cardnum : ""
             * name : 王五
             * role : ""
             * password : ""
             * header : ""
             * mobile : ""
             */

            private int id;
            private String time;
            private String sex;
            private String cardimg;
            private String nickname;
            private String cardnum;
            private String name;
            private String role;
            private String password;
            private String header;
            private String mobile;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public String getSex() {
                return sex;
            }

            public void setSex(String sex) {
                this.sex = sex;
            }

            public String getCardimg() {
                return cardimg;
            }

            public void setCardimg(String cardimg) {
                this.cardimg = cardimg;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public String getCardnum() {
                return cardnum;
            }

            public void setCardnum(String cardnum) {
                this.cardnum = cardnum;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getRole() {
                return role;
            }

            public void setRole(String role) {
                this.role = role;
            }

            public String getPassword() {
                return password;
            }

            public void setPassword(String password) {
                this.password = password;
            }

            public String getHeader() {
                return header;
            }

            public void setHeader(String header) {
                this.header = header;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(this.id);
                dest.writeString(this.time);
                dest.writeString(this.sex);
                dest.writeString(this.cardimg);
                dest.writeString(this.nickname);
                dest.writeString(this.cardnum);
                dest.writeString(this.name);
                dest.writeString(this.role);
                dest.writeString(this.password);
                dest.writeString(this.header);
                dest.writeString(this.mobile);
            }

            public AdminBean() {
            }

            protected AdminBean(Parcel in) {
                this.id = in.readInt();
                this.time = in.readString();
                this.sex = in.readString();
                this.cardimg = in.readString();
                this.nickname = in.readString();
                this.cardnum = in.readString();
                this.name = in.readString();
                this.role = in.readString();
                this.password = in.readString();
                this.header = in.readString();
                this.mobile = in.readString();
            }

            public static final Parcelable.Creator<AdminBean> CREATOR = new Parcelable.Creator<AdminBean>() {
                @Override
                public AdminBean createFromParcel(Parcel source) {
                    return new AdminBean(source);
                }

                @Override
                public AdminBean[] newArray(int size) {
                    return new AdminBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.uid);
            dest.writeString(this.total);
            dest.writeInt(this.id);
            dest.writeString(this.content);
            dest.writeString(this.title);
            dest.writeLong(this.time);
            dest.writeString(this.page);
            dest.writeParcelable(this.admin, flags);
            dest.writeString(this.typeid);
            dest.writeString(this.img);
            dest.writeString(this.rows);
        }

        public RowsBean() {
        }

        protected RowsBean(Parcel in) {
            this.uid = in.readInt();
            this.total = in.readString();
            this.id = in.readInt();
            this.content = in.readString();
            this.title = in.readString();
            this.time = in.readLong();
            this.page = in.readString();
            this.admin = in.readParcelable(AdminBean.class.getClassLoader());
            this.typeid = in.readString();
            this.img = in.readString();
            this.rows = in.readString();
        }

        public static final Parcelable.Creator<RowsBean> CREATOR = new Parcelable.Creator<RowsBean>() {
            @Override
            public RowsBean createFromParcel(Parcel source) {
                return new RowsBean(source);
            }

            @Override
            public RowsBean[] newArray(int size) {
                return new RowsBean[size];
            }
        };
    }

    public static class BannerBean implements Parcelable {
        /**
         * total : ""
         * id : 31
         * time : 1508926680000
         * flag : 6
         * page : ""
         * name : 观看公开课,感受名师风采
         * img : /sys/menu/1508921358930.png
         * rows : ""
         */

        private String total;
        private int id;
        private long time;
        private int flag;
        private String page;
        private String name;
        private String img;
        private String rows;

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public int getFlag() {
            return flag;
        }

        public void setFlag(int flag) {
            this.flag = flag;
        }

        public String getPage() {
            return page;
        }

        public void setPage(String page) {
            this.page = page;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getRows() {
            return rows;
        }

        public void setRows(String rows) {
            this.rows = rows;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.total);
            dest.writeInt(this.id);
            dest.writeLong(this.time);
            dest.writeInt(this.flag);
            dest.writeString(this.page);
            dest.writeString(this.name);
            dest.writeString(this.img);
            dest.writeString(this.rows);
        }

        public BannerBean() {
        }

        protected BannerBean(Parcel in) {
            this.total = in.readString();
            this.id = in.readInt();
            this.time = in.readLong();
            this.flag = in.readInt();
            this.page = in.readString();
            this.name = in.readString();
            this.img = in.readString();
            this.rows = in.readString();
        }

        public static final Parcelable.Creator<BannerBean> CREATOR = new Parcelable.Creator<BannerBean>() {
            @Override
            public BannerBean createFromParcel(Parcel source) {
                return new BannerBean(source);
            }

            @Override
            public BannerBean[] newArray(int size) {
                return new BannerBean[size];
            }
        };
    }
}
